# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=dulcepan
pkgver=1.0.2
pkgrel=0
pkgdesc="A screenshot tool for Wayland compositors"
url="https://codeberg.org/vyivel/dulcepan"
arch="all"
license="GPL-3.0-only"
makedepends="
	cairo-dev
	libsfdo-dev
	libspng-dev
	libxkbcommon-dev
	meson
	pixman-dev
	wayland-dev
	wayland-protocols-dev
"
source="$pkgname-$pkgver.tar.gz::https://codeberg.org/vyivel/dulcepan/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname"
options="!check" # no tests

build() {
	abuild-meson \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
152575de448b751d2701af9f8e7db5bca85270faf9ad32de3f294eb59f66d58d2c5b981c6d58bc78e222bfe98ae4989dda9a756d12b28d139a355e0c897d6988  dulcepan-1.0.2.tar.gz
"
